package com.laboratory.domain.dto;

import jakarta.validation.Valid;
import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
import java.util.Map;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class FormDto {

    /**
     * 测试表单参数校验
     */
    private List<@NotBlank String> tags;

    /**
     * 测试嵌套对象参数校验
     */
    private Map<@NotBlank String, @Valid ItemDto> items;

}
